package com.example.demo.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class PopularUser {

    private String username;
    private Integer totalBorrowNum;

    public PopularUser(){}
    public PopularUser(String username, Integer totalBorrowNum){
        this.username = username;
        this.totalBorrowNum = totalBorrowNum;
    }

    @Override
    public String toString() {
        return "PopularUser{" +
                "username='" + username + '\'' +
                ", totalBorrowNum=" + totalBorrowNum +
                '}';
    }
}
